home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / sml_nj / 93src.lha / src / runtime / ml_signal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-09  |  1.2 KB  |  45 lines

  1. /* ml_signal.h
  2.  *
  3.  * COPYRIGHT (c) 1990 by AT&T Bell Laboratories.
  4.  */
  5.  
  6. #ifndef _ML_SIGNAL_
  7. #define _ML_SIGNAL_
  8.  
  9. /* the ML signal codes (these must agree with the function
  10.  * System.Signals.sig2code in "boot/perv.sml"
  11.  */
  12. #define ML_NOSIG        -1
  13. #define ML_SIGHUP        0
  14. #define ML_SIGINT        1
  15. #define ML_SIGQUIT        2
  16. #define ML_SIGALRM        3
  17. #define ML_SIGTERM        4
  18. #define ML_SIGURG        5
  19. #define ML_SIGCHLD        6
  20. #define ML_SIGIO        7
  21. #define ML_SIGWINCH        8
  22. #define ML_SIGUSR1        9
  23. #define ML_SIGUSR2        10
  24. #define ML_SIGTSTP        11
  25. #define ML_SIGCONT        12
  26. #define ML_SIGGC        13
  27. #define ML_SIGVTALRM        14
  28. #define ML_SIGPROF              15
  29.  
  30. #define NUM_ML_SIGS        16    /* the number of ML supported signals */
  31.  
  32. #define SIG_NOT_UNIX        0    /* the code for non-unix signals */
  33.  
  34. /* the state of ML signal handlers */
  35. #define ML_SIG_DISABLED        0
  36. #define ML_SIG_ENABLED        1
  37.  
  38. /* The action the C-signal handler should take when a signal comes in but
  39.  * is disabled. */
  40. #define DFL_TERM_NO_CORE 0 /* terminate with out generating a core image */
  41. #define DFL_IGNORE       1 /* ignore the signal */
  42. #define DFL_NO_HANDLER   2 /* no C handler should be installed for this */
  43.                            /* signal when no ML handler is installed */
  44. #endif _ML_SIGNAL_
  45.